package com.bilgeadam.hibernate.model.dal;

import org.hibernate.Session;

import com.bilgeadam.hibernate.model.entity.EntityBase;
import com.bilgeadam.hibernate.model.util.HibernateUtil;

/**
 * 
 * @author Bora SAYINER
 * @since Nov 16, 2014 5:20:07 PM
 * @version 1.0.0
 */
public abstract class AbstractDal<T, E extends EntityBase<T>> implements GenericDal<T, E> {

	protected Session getSession(){
		return HibernateUtil.getSessionFactory().openSession();
	}
	
}
